package com.qys.livesMall.financial.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 线上理财结算记录
 * </p>
 *
 * @author
 * @since 2023-07-26
 */
@Getter
@Setter
@TableName("h2_financial_online_settlement_info")
@Schema(name = "FinancialOnlineSettlementInfo", description = "线上理财结算记录")
public class FinancialOnlineSettlementInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    private Long userId;

    private Long onlineDetailId;

    @Schema(description = "本金")
    private BigDecimal principal;

    @Schema(description = "总营收")
    private BigDecimal totalRevenue;

    @Schema(description = "总收益")
    private BigDecimal totalIncome;

    @Schema(description = "上级分佣")
    private BigDecimal superiorCommission;

    @Schema(description = "个人收益")
    private BigDecimal income;

    @Schema(description = "上级收益明细")
    private String superiorCommissionDetail;

    @Schema(description = "结算时间")
    private LocalDateTime settlementDate;
}
